package com.big.codegen.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 字段配置
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-25-21:42
 */
@Data
@Schema(description = "字段配置数据传输对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ColumnDTO {
    @Schema(description = "字段名")
    private String columnName;
    @Schema(description = "字段注释")
    private String columnComment;
    @Schema(description = "字段类型")
    private String columnType;
    @Schema(description = "字段长度")
    private Integer columnLength;
    @Schema(description = "字段精度")
    private Integer columnPrecision;
    @Schema(description = "字段是否为空")
    private Boolean isNullable;
    @Schema(description = "字段是否为主键")
    private Boolean isPrimaryKey;
    @Schema(description = "字段是否为自增")
    private Boolean isAutoIncrement;
    @Schema(description = "字段默认值")
    private String columnDefault;
    @Schema(description = "字段修改默认值（给 update_time 使用)）")
    private String columnDefaultUpdate;


}
